package com.jl.jlapp.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.widget.RadioButton;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.jl.jlapp.R;
import com.jl.jlapp.eneity.InvoiceUnitAndVatInvoiceAptitude;
import com.jl.jlapp.mvp.activity.OrderWriteActivity;

import java.util.List;

public class CompanyListAdapter
        extends BaseQuickAdapter<InvoiceUnitAndVatInvoiceAptitude.ResultDataBean.InvoiceUnitBean, BaseViewHolder> {
    public CompanyListAdapter(@LayoutRes int paramInt, @Nullable List<InvoiceUnitAndVatInvoiceAptitude.ResultDataBean.InvoiceUnitBean> paramList) {
        super(paramInt, paramList);
    }

    protected void convert(BaseViewHolder paramBaseViewHolder, InvoiceUnitAndVatInvoiceAptitude.ResultDataBean.InvoiceUnitBean paramInvoiceUnitBean) {
        paramBaseViewHolder.setText(R.id.rb_company_item, paramInvoiceUnitBean.getUnitName());
        paramBaseViewHolder.setText(R.id.tv_nummber, paramInvoiceUnitBean.getTaxpayerIdentificationNumber());
        RadioButton radioButton = (RadioButton) paramBaseViewHolder.getView(R.id.rb_company_item);
        if (OrderWriteActivity.index == paramBaseViewHolder.getAdapterPosition()) {
            radioButton.setChecked(true);
        } else {

            paramBaseViewHolder.addOnClickListener(R.id.rb_company_item);
            radioButton.setChecked(false);
        }
    }
}


/* Location:              /Users/davidzhang/Documents/decompileApk/jlfood-dex2jar.jar!/com/jl/jlapp/adapter/CompanyListAdapter.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */